import axios from '../axios'
// 获取商品品牌列表
export const fetchList  = (data) => {
  return axios({
      url: '/brand/fetchList',
      method: 'post',
      data
  })
}

export function createBrand(data) {
  return axios({
    url:'/brand/create',
    method:'post',
    data:data
  })
}
export function updateShowStatus(data) {
  return axios({
    url:'/brand/updateShowStatus',
    method:'get',
    data:data
  })
}


export function deleteBrand(data) {
  return axios({
    url:'/brand/delete',
    method:'get',
    data
  })
}

export function getBrand(data) {
  return axios({
    url:'/brand',
    method:'get',
    data
  })
}

export function updateBrand(data) {
  return axios({
    url:'/brand/update',
    method:'post',
    data:data
  })
}

